Method: TimeCalc::Value#<=>

Defined in:
lib/time_calc/value.rb

#<=>(other) ⇒ 1, ...

Returns:

  • (1, 0, -1)


65
66
67
68
69
# File 'lib/time_calc/value.rb', line 65

def <=>(other)
  return unless other.is_a?(self.class)

  Types.compare(internal, other.internal)
end